package cloud.xlh.auto_configuration;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2023/1/31 9:34
 * @ Description:
 */
@Component
public class AppListener implements CommandLineRunner , DisposableBean {

    @Override
    public void destroy() throws Exception {
        System.out.println("英雄迟暮......");
    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println("我要打倒最可怕的邪恶，难免要撕去虚假正义的薄薄糖衣。fighting!!!");
    }
}
